#ifndef _mysql_h_
#define _mysql_h_
#include <stdio.h>
#include <mysql/mysql.h>
#include <string.h>
#include <stdlib.h>
#include "select.h"
#define HOSTNAME "localhost"
#define USERNAME "root"
#define PASSWD "123456"
#define DATABASENAME "chatroom"
#define TABLENAME "infor"
void print_all_data(MYSQL *mysql, Msg *msg);
int search(MYSQL *mysql, Msg *msg);

MYSQL *Sconnect();
int data_insert(MYSQL *mysql, Msg *msg, int sockfd, int root);
int Entry_User(MYSQL *con, Msg *msg, int my_sockfd);
int change(MYSQL *my_sql, char *field, char *changenaem, char *naem);
int mysql_delete(MYSQL *my_sql, char *deletename);
int search1(MYSQL *mysql);
#endif 